package com.srwl.mytx.service;


import com.srwl.mytx.domain.CommonResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface OrderService {

    @POST("/es/cancelOrder")
    Call<CommonResult> cancelOrder(@Body Object body);

    //卖家取消已经支付的订单
    @POST("/es/cancelPaidOrder")
    Call<CommonResult> cancelPaidOrder(@Body Object body);


    @POST("/es/payOrder")
    Call<CommonResult> payOrder(@Body Object body);

    /**
     * 订单发货
     *
     * @param body
     * @return
     */
    @POST("/es/orderSend")
    Call<CommonResult> orderSend(@Body Object body);

    /**
     * 修改订单发货信息
     *
     * @param body
     * @return
     */
    @POST("/es/modifyOrderSendInfo")
    Call<CommonResult> modifyOrderSendInfo(@Body Object body);

    /**
     * 同步订单数据
     *
     * @param body
     * @return
     */
    @POST("/es/syncOrderData")
    Call<CommonResult> syncOrderData(@Body Object body);

    /**
     * 查询个人买入订单
     *
     * @param body
     * @return
     */
    @POST("/es/queryMyBuyOrder")
    Call<CommonResult> queryMyBuyOrder(@Body Object body);

    /**
     * 查询个人卖出订单
     * @param body
     * @return
     */
    @POST("/es/queryMySellOrder")
    Call<CommonResult> queryMySellOrder(@Body Object body);

    //确认收货
    @POST("/es/receive")
    Call<CommonResult> receive(@Body Object body);

    //发起退款
    @POST("/es/refund")
    Call<CommonResult> refund(@Body Object body);

    //取消退款
    @POST("/es/cancelRefund")
    Call<CommonResult> cancelRefund(@Body Object body);

    //拒绝退款
    @POST("/es/refuseRefund")
    Call<CommonResult> refuseRefund(@Body Object body);

    //同意退款
    @POST("/es/agreeRefund")
    Call<CommonResult> agreeRefund(@Body Object body);

    //卖方删除订单
    @POST("/es/deleteOrdersForSeller")
    Call<CommonResult> deleteOrdersForSeller(@Body Object body);

    //买方 删除订单
    @POST("/es/deleteOrdersForBuyer")
    Call<CommonResult> deleteOrdersForBuyer(@Body Object body);



}

